<%@page language="java" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@taglib uri="TowkerTagLib" prefix="rbac"%>
<%@ taglib uri="/WEB-INF/tags/CommonFunction.tld" prefix="cfn" %>
<%@include file="/commons/include/html_doctype.html" %>
<html>
<head>
	<title>物料结存和已下订单情况列表</title>
	<%@include file="/commons/include/get.jsp" %>
	<script type="text/javascript">
		//放置脚本
	</script>
</head> 
<body>
<table border="0" cellspacing="0" cellpadding="0" class="listLogo">
	<tr>
		<td class="title">物料结存和已下订单情况列表</td>
	</tr>
</table>
<div class="line"></div>
<form id="queryForm" method="post" action="getSurplusOrder.htm">
<table border="0" cellspacing="0" cellpadding="0" class="queryTable">
	<tr>
		<td class="title">物料代码：</td>
		<td class="input"><input id="title" name="goods_sn" class="input" value="${fn:escapeXml(param.goods_sn)}" /></td>
	
		<td class="title">物料名称：</td>
		<td class="input"><input id="title" name="goods_name" class="input" value="${fn:escapeXml(param.goods_name)}" /></td>
		<td class="title">仓库代码：</td>
		<td class="input"><input id="title" name="depot_code" class="input" value="${fn:escapeXml(param.depot_code)}" /></td>
	
		<td class="query" ><input id="_querySubmit_" type="submit" class="button" value="查询" /></td>
	</tr>
</table>
</form>
<div class="line"></div>
<form id="listForm" method="post" action="delSurplusOrder.htm">
<table border="0" cellspacing="1" cellpadding="0" class="listTable">
	<tr class="list_title">
		<td>物料代码</td>
		<td>物料名称</td>
		<td>计量单位</td>
		<td>单位重量</td>
		<td>仓库代码</td>
		<td>仓库名称</td>
		<td>当前库存量</td>
		<td>已下单数量</td>
		<td>操作</td>
		
	</tr>
<c:forEach items="${pageModel.result}" var="d" varStatus="status">
	<tr class="${status.index%2==0?'list_even':'list_odd'}">
		<td>${fn:escapeXml(d.goods_sn)}</td>
		<td>${fn:escapeXml(d.goods_name)}</td>
		<td>${fn:escapeXml(d.unit)}</td>
		<td>${fn:escapeXml(d.weight)}</td>
		<td>${fn:escapeXml(d.depot_code)}</td>
		<td>${fn:escapeXml(d.depot_nane)}</td>
		<td>${fn:escapeXml(d.stock)}</td>
		<td>${fn:escapeXml(d.down_order)}</td>
		<td>		
		   <div class="menuTool">
			<a class="get" href="${ctx }/manage/warehouse/getGoodsInOutList.htm?goodsSn=${d.goods_sn}&depotCode=${d.depot_code}&isAccount=0">账面明细</a>
			</div>
		</td>
	  </tr>
</c:forEach>
</table>
<input id="_submit_" type="submit" style="display:none;" />
</form>
<table border="0" cellspacing="0" cellpadding="0" class="bottomTable">
	<tr><td>${pageNav.page}</td></tr>
</table>
</body>
</html>
